let fs = require('fs');
let buf = '';

process.stdin.on('readable', function() {
    let chunk = process.stdin.read();
    if (chunk) buf += chunk.toString();
});

process.stdin.on('end', function() {
    let s = buf.split("\n")[0].split(" ");
    let ns = "";
    for (let i = s.length - 1; i >= 0; --i) {
        ns += `${s[i]} `;
    }
    console.log(ns);
});